<template>
  <h1>基于props的参数是: {{ id }} ====== {{ title }} ====== {{author}}</h1>
</template>

<script>
export default {
  name: "BookDetails2",
  props: {
    id: {type: Number, default: 0},
    title: {type: String, default: "ok"},
    author: {type: String, default: "ok"}
  }
}
</script>

<style scoped>

</style>